//
//  FWTopWindown.m
//  BirdLoveSheep
//
//  Created by wwj on 16/4/5.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "FWTopWindown.h"
#import "FWTopWindownController.h"

@interface FWTopWindown ()

@end

static UIWindow *_topWindow;

@implementation FWTopWindown
+ (void)initialize{
    UIWindow *topWindow = [[UIWindow alloc] init];
    topWindow.frame = CGRectMake(0, 0, kScreenW, 20);
    topWindow.windowLevel = UIWindowLevelAlert;
    topWindow.backgroundColor = [UIColor clearColor];
    topWindow.rootViewController = [[FWTopWindownController alloc] init];
    _topWindow = topWindow;
}

+ (void)showTopWindown{
    _topWindow.hidden = NO;
}

+ (void)hiddenTopWindown{
    _topWindow.hidden = YES;
}
@end
